<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

<script src="js/ajax.js"></script>

<script>
	function check() {
		//获取ajax对象
		var xhr = getXhr();
		//发送请求
		xhr.open('post', 'check.do', true);
		xhr.setRequestHeader('content-type',
				'application/x-www-form-urlencoded');
		xhr.onreadystatechange = function() {

			if (xhr.readyState == 4 && xhr.status == 200) {
				
				var txt=xhr.responseText;
				$('msg').innerHTML=txt;
				
				
			}

		}

		xhr.send('adminCode=' + $F('adminCode'));

	}
</script>

</head>
<body style="fint-size: 30px;">
	<form action="check.do" method="post">
		账号:<input id="adminCode" type="text" name="adminCode"
			onblur="check();" /> 
		<span id="msg"></span><br /> 
		密码:<input	type="password" name="pwd" /> <input type="submit" value="确定" />

	</form>



</body>
</html>